package com.zttek.videoShareProject.common.json;

import com.zttek.videoShareProject.modules.model.Follow;

import java.util.Date;

/**
 * Created by 13296 on 2018/7/7.
 */
public class FollowVO {
    /**
     * 关注处理json类
     */
    public static class FollowForm{
        private Long follow_id;///被关注者id
        private Long follower_id;//关注者id
        private Integer is_follow;//添加关注0，取消关注1

        public Long getFollow_id() {
            return follow_id;
        }

        public void setFollow_id(Long follow_id) {
            this.follow_id = follow_id;
        }

        public Long getFollower_id() {
            return follower_id;
        }

        public void setFollower_id(Long follower_id) {
            this.follower_id = follower_id;
        }

        public Integer getIs_follow() {
            return is_follow;
        }

        public void setIs_follow(Integer is_follow) {
            this.is_follow = is_follow;
        }

        public Follow getFollow(){
            Follow follow = new Follow();
            follow.setFollowerId(follower_id);
            follow.setFollowId(follow_id);
            follow.setFollowDate(new Date());
            return follow;
        }
    }
}
